//
//  fajianlistTableViewCell.m
//  BAOASystem
//
//  Created by michael on 2018/3/21.
//  Copyright © 2018年 czd. All rights reserved.
//

#import "fajianlistTableViewCell.h"

@implementation fajianlistTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self)  {

 _imagename = [[UIImageView alloc]init];
        _imagename.frame = CGRectZero;
          [self.contentView addSubview:_imagename]; _label1 = [[UILabel alloc]init];
    _label1.frame = CGRectZero;
    _label1.textColor = [UIColor colorWithHexString:@"0a62ea"];
      [_label1 setFont:[UIFont systemFontOfSize:14]];
       [self.contentView addSubview:_label1];
    
         _label2 = [[UILabel alloc]init];
    _label2.frame = CGRectZero;
    _label2.numberOfLines = 0;
    _label2.textColor = [UIColor colorWithHexString:@"484848"];
      [_label2 setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label2];
    
                _label3 = [[UILabel alloc]init];
    _label3.frame = CGRectZero;
    _label3.textColor = [UIColor colorWithHexString:@"a1a1a1"];
      [_label3 setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label3];
    
                 _label4 = [[UILabel alloc]init];
    _label4.frame = CGRectZero;
    _label4.textColor = [UIColor colorWithHexString:@"a1a1a1"];
      [_label4 setFont:[UIFont systemFontOfSize:13]];
       [self.contentView addSubview:_label4];
       _view1 = [[UIView alloc]initWithFrame:CGRectZero];
       [self.contentView addSubview:_view1];
              _view2 = [[UIView alloc]initWithFrame:CGRectZero];
       [self.contentView addSubview:_view2];
}return self;
}
- (void)layoutSubviews{

[super layoutSubviews];
//fromMemberId = 6ef0b56c1a6f4f8d8824019344f6e1d3;
//    content = v天车LD式电动葫芦式行吊;
//    fromUserName = 夏西颂;
//    id = 80536a8b36e34c258da58a4890f74908;
//    title = 询问有关天车LD式电动葫芦式行吊;
//    toMemberNameId = 6ef0b56c1a6f4f8d8824019344f6e1d3;
//    createDate = 2017-10-17;

_imagename.image = [UIImage imageNamed:@"联系信lieb"];
_imagename.frame = CGRectMake(10, 5, 20, 20);
_label1.frame = CGRectMake(_imagename.right+10, 0, KScreenWidth-20-30, 30);
_label1.text = _dic[@"title"];
_view1.backgroundColor = [UIColor colorWithHexString:@"f0eff5"];
_view1.frame =CGRectMake(0, 29, KScreenWidth,1);
NSString *string = _dic[@"content"];
 CGFloat height = [OAToolBox sizebyText:string font:13 minsWidth:20];
_label2.frame =CGRectMake(10, 30+5, KScreenWidth-20,height);
_label2.text = string;
_label3.frame = CGRectMake(10, _label2.bottom+5, 100, 20);

_label3.text = [NSString stringWithFormat:@"%@%@",NSLocalizedString(@"收件人:", nil),_dic[@"toUserName"]];

_label4.frame = CGRectMake(KScreenWidth-110, _label3.top, 100, 20);
_label4.text = _dic[@"createDate"];

_view2.backgroundColor =[UIColor colorWithHexString:@"f0eff5"];
_view2.frame = CGRectMake(0, _label3.bottom, KScreenWidth, 10);
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end

